﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interface
{
    public interface IFlowers
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        List<T> GetFlowers<T>();
        /// <summary>
        /// 添加商品
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="flo"></param>
        /// <returns></returns>
        bool AddStock1<T>(T flo);
        /// <summary>
        /// 采购商品
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="flo"></param>
        /// <returns></returns>
        bool PurchaseStock<T>(T flo);
        /// <summary>
        /// 反填数据
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        T GetStock<T>(int id);

        /// <summary>
        /// 查询
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="name"></param>
        /// <returns></returns>
        List<T> GetStockList<T>(params SqlParameter[] Parameter);
        /// <summary>
        /// 删除
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="id"></param>
        /// <returns></returns>
        int Delete<T>(int id);
    }
}
